<?php 
class Test extends Controller 
{
	function Test ()
	{
		parent::Controller ();
		$this->rain->authorize ();
	}
	function index ()
	{
		$this->load->view ('prototype');
	}
	function isadmin ()
	{
		$value = ($this->dx_auth->is_role ('admin')) ? 'True' : 'False';
		echo $value;
	}
	function isclient ()
	{
		$value = ($this->dx_auth->is_role ('client')) ? 'True' : 'False';
		echo $value;
	}
	function ismod ()
	{
		$value = ($this->dx_auth->is_role ('mod')) ? 'True' : 'False';
		echo $value;
	}
}